package io.xiyou.rpcfx.demo.provider;


import io.xiyou.rpcfx.demo.api.Order;
import io.xiyou.rpcfx.demo.api.OrderService;

public class OrderServiceImpl implements OrderService {

    @Override
    public Order findOrderById(int id) {
//        Order order = new Order();
//        order.setId(id);
//        order.setName("西柚" + System.currentTimeMillis());
//        order.setAmount(9.9f);

        Order order = new Order(id, "西柚" + System.currentTimeMillis(), 9.9f);
        return order;
    }

}
